/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: ZJZ
 * @Date: 2021-08-02 17:22:01
 * @LastEditors: 朱江洲
 * @LastEditTime: 2021-11-03 10:58:02
 */
import request from "@/utils/request.js";

//查询收款管理列表
export const getCollectList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/CollectionOrder/list',
        params
    })
}

// 高级筛选查询
export const queryScene = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/scene/queryScene',
        params
    })
}

// 查询负责人
export const distriBution = () => {
    return request({
        method: "get",
        url: '/serviceProvide/distribution/getPersonLiable'
    })
}

// 更换负责人
export const bindingPersonLiable = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/CollectionOrder/changeDirector',
        params
    })
}

//收款管理订单详情查询
export const getDetail = id => {
    return request({
        method: 'get',
        url: `/serviceProvide/CollectionOrder/${id}`,
    })
}

// 获取学员信息
export const getStudents = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerInformation/getList`,
        params
    })
}

// 确认订单
export const editOrder = data => {
    return request({
        method: 'put',
        url: `/serviceProvide/CollectionOrder/edit`,
        data
    })
}
// 收款管理学员信息

export const getStudentInfo = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/CollectionOrder/getCustomFieldDataByOrder`,
        params
    })
}

// 分配订单
export const distribution = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/CollectionOrder/distribution`,
        params
    })
}
// 领取订单
export const receive = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/CollectionOrder/receive`,
        params
    })
}

// 收款管理订单删除
export const collDel = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/CollectionOrder/del`,
        params
    })
}

// 付款管理列表
export const getPaylist = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/paymentOrder/list`,
        params
    })
}

// 分配订单
export const payDistribution = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/paymentOrder/distribution`,
        params
    })
}
// 领取订单
export const payReceive = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/paymentOrder/receive`,
        params
    })
}
// 更换负责人
export const changeDirector = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/paymentOrder/changeDirector`,
        params
    })
}
// 导出所有
export const payexportAll = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/paymentOrder/exportAll`,
        params
    })
}

// 导出选中
export const payexportChi = data => {
    return request({
        method: 'post',
        url: `/serviceProvide/paymentOrder/export`,
        data
    })
}
// 学员信息
export const getPayStudentByOrderNo = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getStudentByOrderNo`,
        params
    })
}
// 确认订单
export const Payconfirm = data => {
    return request({
        method: 'post',
        url: `/serviceProvide/paymentOrder/confirm`,
        data
    })
}

// 收款管理导出所有
export const skExport = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/CollectionOrder/export`,
        params
    })
}






